/**
   A telephone that takes simulated keystrokes and voice input
   from the user and simulates spoken text.
*/
public class Telephone
{
   /**
      Construct phone object.
      @param aScanner that reads text from a character-input stream
   */
   public Telephone(Communicable theCommunicable)
   {
      communicable = theCommunicable;
   }

   /**
      Speak a message to System.out.
      @param output the text that will be "spoken"
   */
   public void speak(String output)
   {
	   communicable.transmitVoice(output);
   }
   
   public void showDisplay(String output)
   {
	   communicable.printScreen(output);
   }

   
   private Communicable communicable;
}
